package com.larry.isn;

import java.io.File;

public class WaitingForLogger {

	private String path = "D:/data/ers/logger/file/sfis/";

	public void check() throws Exception {
		Thread.sleep(60000);
		File file = new File(path);
		while (file.listFiles().length != 0) {
			Thread.sleep(60000);
			System.out.println("I am waiting for file logger. Still has files:" + file.listFiles().length);
		}
		System.out.println("Success!!");
	}
}
